<template>
  <div ref="relationChart"></div>
</template>
<script>
import RelationChart from 'relation-chart'
export default {
  name: 'RelationChart',
  props: {
    config: {
      type: Object
    }
  },
  mounted () {
    const { data, set } = this.config
    /* eslint-disable no-new */
    new RelationChart(this.$refs.relationChart, data, set)
  }
}
</script>
